package org.example.springweibo.mapper;

import org.apache.ibatis.annotations.Param;
import org.example.springweibo.pojo.dto.CommentDTO;
import org.example.springweibo.pojo.entity.Comment;
import org.example.springweibo.pojo.vo.WeiboCommentVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommentMapper {

    int addComment(Comment comment);

    int deleteComment(@Param("id")int id);

    List<WeiboCommentVO> selectCommentByMyUser(CommentDTO commentDTO);

    //模糊查询
    /**
     * alter table user add fulltext(username)
     *
     * select * from user where match(username) against()
     */
}
